<template>
	
	
   <div  v-bind:style="{'width': '100%','height': '100%','border':props.tag.condition=='1'?'1px solid':'','color':props.tag.isNew?'red':'','text-align':'center','background':'white'}" >
	
	{{ props.tag.code.substring(props.tag.code.length-2,props.tag.code.length)}}

   
	
   
   </div>

</template>
  <script lang="ts" setup>
  import {ref} from "vue";
 	//父级传递来的参数
   var props = defineProps({
	tag: {
	type: Object,
	default: { x: 0, y: 1, w: 1, h: 1, code: '10001',type:1,condition:"1",isNew:false },
	},
	});

  </script>